<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>STAFFER - Shifts</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<style media="all" type="text/css">
@import "../css/all.css";
</style>

<script src='../js/ajax.js'></script>

<script language='javascript' type='text/javascript'>

function submitChangeRequest(user){

	var monthSelector = document.getElementById('monthSelect');
	var monthValue= monthSelector.options[monthSelector.selectedIndex].value;
	var daySelector = document.getElementById('daySelect');
	var dayValue= daySelector.options[daySelector.selectedIndex].value;
	var yearSelector = document.getElementById('yearSelect');
	var yearValue= yearSelector.options[yearSelector.selectedIndex].value;

	var shiftSelector = document.getElementById('shiftSelect');
	var shiftValue= shiftSelector.options[shiftSelector.selectedIndex].value;

	var userSelector = document.getElementById('userSelect');
	var userValue= userSelector.options[userSelector.selectedIndex].value;

	var date = yearValue+"-"+monthValue+"-"+dayValue;
	var byShift= false; 
	var byUser=  false; 
	var data= "";
	
	if(document.getElementById('r1').checked) {
		byShift = true;
		data = shiftValue;
	} else if (document.getElementById('r2').checked) {
		byUser= true; 
		data = userValue;
	}
	
	page = '../control/c_shifts.php?requestSubmit='+user+"&date="+date+"&byShift="+byShift+"&byUser="+byUser+"&data="+data;
	//alert(page);
	AbreDoc('',page,'viewer');
}

function viewMyShift(user){
	page = '../control/c_shifts.php?viewMyShift='+user;
	//alert(page);
	AbreDoc('',page,'viewer');
}

function viewRequestForm(user){
	page = '../control/c_shifts.php?viewChangeForm='+user;
	//alert(page);
	AbreDoc('',page,'viewer');
}

function viewShiftChangeManagement(user){
	page = '../control/c_shifts.php?manageChanges='+user;
	//alert(page);
	AbreDoc('',page,'viewer');
}


function cancelRequest(requestId){
	var username = '<?php echo $_SESSION['usr'];?>';
	page = '../control/c_shifts.php?cancel='+requestId+'&username='+username;
	//alert(page);
	AbreDoc('',page,'viewer');
}

function radioEnableSwap(sourceRadio){

	if (sourceRadio=="r1") {
		document.getElementById("shiftSelect").disabled = false;
		document.getElementById("userSelect").disabled = true;
	} else if (sourceRadio=="r2") {
		document.getElementById("shiftSelect").disabled = true;
		document.getElementById("userSelect").disabled = false;
	}
}

</script>

</head>
<body>
<div id="main">
  <div id="header"> <a href="#" class="logo"><img src="../images/cisco.png" width="101" height="50" alt="" /></a>
    <ul id="top-navigation">
      <li><span><span><a href="../../qshift_change/control/c_q_shifts.php?view=list">Q-Shifts</a></span></span></li>
      <li class="active"><span><span><a href="../../shift_change/control/c_shifts.php?viewMyShift=yes">Shifts</a></span></span></li>
      <!--<li><span><span><a href="../callback/">Callbacks</a></span></span></li>-->
      <li><span><span><a href="../../management/">Management</a></span></span></li>
      <li><span><span><a href="../../activity_log/">Activity Log</a></span></span></li>
      <li><span><span><a href="../../login/control/c_logout.php">Logout</a></span></span></li>
    </ul>
  </div>
  
  <div id="middle">
    <div id="left-column">
      <h3>Go to:</h3>
      <ul class="nav">
        <li><a href="../control/c_shifts.php?viewMyShift=yes">My Shifts</a></li>
        <li><a href="../control/c_shifts.php?viewShiftChange=yes">Change Request</a></li>
        <li><a href="../control/c_shifts.php?manageChanges=list">Manage Shift Changes</a></li>
        <li class="last"><a href="../../login/control/c_logout.php">Logout</a></li>
      </ul>
	  
    <div id="right-column"> <strong class="h">INFO</strong>
      <div class="box">
	  
	  Welcome to the Shift Area!
	  <br><br>
	  Live long and prosper!
	  
	  </div>
    </div>
	  
	 <b>Links:</b>
      <a href="http://tac-wiki.cisco.com/Team:Multiservice" class="link">WW Wiki</a> 
	  <a href="http://10.198.28.170/mediawiki-1.15.1/index.php?title=Main_Page" class="link">MS Wiki</a>
	
	  
	</div>
	
	
	  
	  
    <div id="center-column">

	<!-- HEADER SECTIONS ENDS HERE-->
	
	<!-- CONTENT SECTION STARTS HERE-->

